package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.model.domain.DepotExtra;
import com.weixing.mall.provider.model.dto.DepotExtraDto;
import com.weixing.mall.provider.model.vo.DepotExtraVo;

/**
 * <p>
 * 仓库模块-仓库扩展表（存储编号、库位、序号信息） 服务类
 * </p>
 *
 * @author Small
 * @since 2020-05-23
 */
public interface IDepotExtraService extends IService<DepotExtra> {
    /**
     * 根据条件删除记录
     * @param depotId
     * @param productId
     * @param depotSn
     */
    void delByCondition(Long depotId,Long productId,String depotSn);

    /**
     * 查询记录跟据仓库ID和货品ID
     */
    IPage<DepotExtraVo> selectPage(Page page, Long depotId, Long productId);


    void saveOrUpdate(DepotExtraDto ded);

    void delById(Long id);

    /**
     * 根据条件删除记录
     * @param depotSn
     */
    void delByDepotSn(String depotSn);
}
